
package cz.muni.fi.pb138.jprvyd;

import java.util.Date;

/**
 *
 * @author xholusa
 */
public class Payment {
    
    private Long id;
    private Date date;
    private int variableSymbol;
    private String bankAccount;
    private int money;

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public Date getDate() {
        if(date == null){
            return null;
        }
        
        return (Date)date.clone();
    }

    public void setDate(Date date) {
        if(date == null){
            return;
        }
        
        this.date = new Date(date.getTime());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getVariableSymbol() {
        return variableSymbol;
    }

    public void setVariableSymbol(int variableSymbol) {
        this.variableSymbol = variableSymbol;
    }
    
    
    
    
}
